const mongoose = require("mongoose");

const Schema = mongoose.Schema;
 
//用户
const User = new Schema({
    id: String,
    username: String,//用户名
    password: String,//密码
    phone: String,//用户电话
    address: String,//用户住址
    haveOre: Number,//拥有矿石数
    needOre: Number,//需要消耗的矿石数
  })

module.exports = mongoose.model("User", User);